home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / Book Chapters / 03 - Advanced Graphics / Example 1 / global.h < prev    next >
Text File  |  1995-02-19  |  2KB  |  44 lines

  1. //
  2. //    File: global.h
  3. //
  4. //    This file contains defines of a global nature.
  5. //
  6. //    2/18/95 -- Created by Mick
  7. //
  8.  
  9. // shield
  10. #ifndef _global_h_
  11. #define _global_h_
  12.  
  13. // global defines
  14.  
  15. // useful constants
  16. #define kNil                                                            0L                                                        // the value of an invalid pointer
  17. #define kTrue                                                        1                                                        // the value of truth
  18. #define kFalse                                                     0                                                        // the value of untruth
  19.  
  20. #define kWindowInFront                        ( WindowPtr )-1L        // the value to pass to NewWindow to place the window in the front
  21.  
  22. // resource ids
  23.  
  24. // color tables ('clut')
  25. #define kAppColorTableResID        128                    // the resource id of the clut resource that defines the colors for the program
  26.  
  27. // windows ('WIND')
  28. #define kMainWindowResID                128                    // the resource id of the WIND resource for the main window
  29.  
  30. // picts ('PICT')
  31. #define kNumberOne                                    201                    // the resource id of the picture of the 1 disk
  32. #define kNumberTwo                                    202                    // the resource id of the picture of the 2 disk
  33. #define kNumberThree                            203                    // the resource id of the picture of the 3 disk
  34. #define kNumberFour                                204                    // the resource id of the picture of the 4 disk
  35. #define kNumberFive                                    205                    // the resource id of the picture of the 5 disk
  36. #define kNumberSix                                    206                    // the resource id of the picture of the 6 disk
  37. #define kNumberSeven                            207                    // the resource id of the picture of the 7 disk
  38. #define kNumberEight                                208                    // the resource id of the picture of the 8 disk
  39. #define kNumberNine                                    209                    // the resource id of the picture of the 9 disk
  40. #define kNumberTen                                    210                    // the resource id of the picture of the 10 disk
  41.  
  42. // end of shield
  43. #endif // #ifndef _global_h_
  44.